package com.hospital.phyexam.controller;

import com.hospital.phyexam.service.BatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: Hospital
 * @description: pici
 * @author: 杨曼珍
 * @create: 2019-01-12 20:57
 **/
@Controller
@RequestMapping(value = "/batch")
public class BatchController {

    @Autowired
    BatchService batchService;


    @RequestMapping(value = "/all", produces = "application/json;charset=utf-8", method = RequestMethod.GET)
    @ResponseBody
    public String getAll(){
        return batchService.getAllBatch();
    }
}
